package com.dayaokeji.rhythmschoolstudent.databases.model;

import android.support.annotation.NonNull;

import com.litesuits.orm.db.annotation.Column;
import com.litesuits.orm.db.annotation.NotNull;
import com.litesuits.orm.db.annotation.PrimaryKey;
import com.litesuits.orm.db.annotation.Table;
import com.litesuits.orm.db.annotation.Unique;
import com.litesuits.orm.db.enums.AssignType;

/**
 * Created by Gorden on 2017/10/28.
 */

@Table("answer")
public class Answer {

    public static final String EXAM_QUESTION_ID = "question_id";
    public static final String ANSWER = "answer";


    @Column(EXAM_QUESTION_ID)
    @PrimaryKey(AssignType.BY_MYSELF)
    @NotNull
    private int questionId;

    @Column(ANSWER)
    @NotNull
    private String answer;

    public int getQuestionId() {
        return questionId;
    }

    public void setQuestionId(int questionId) {
        this.questionId = questionId;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }
}
